package com.xuetang9.fujian;

import com.xuetang9.fujian.net.client.Client;
import com.xuetang9.fujian.view.LoginFrame;
import com.xuetang9.fujian.view.MainFrame;
import com.xuetang9.fujian.view.WindowManager;

import javax.swing.*;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                LoginFrame loginFrame = new LoginFrame();
                WindowManager.addLoginFrame(loginFrame);
                // creat a translation pipe
                MainFrame.client = Client.creatClient("127.0.0.1",9999);
                MainFrame.client.start();
            }
        });
    }
}
